<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<jsp:include page="../common/top.jsp"/>
<logic:messagesPresent>
<br>
<div class="error"><div><div><div><div><div><div><div>
   		<html:messages id="error" message="false">
			<table  class="errorTable">
				<tr>
					<td> <bean:write name="error"/></td>
				<tr>	
			</table>
   		</html:messages>
		</div></div></div></div></div></div></div></div>
	</logic:messagesPresent>
<br/>	
	<html:messages id="msg" message="true">
			
					<table width="30%" cellpadding="1" align="center" cellspacing="0">
						<tr class="infoTable">
							<td class="infoBubble tl" width="10px">
							<bean:write name="msg"/></td>
							<td class="infoBubble tr" width="10x"></td>
						</tr>
						<tr>
							<td class="infoBubble bl"></td>
							<td class="infoBubble br"></td>
						</tr>	
					</table>
				
		</html:messages>	
	
	
  <html:form action="/struts/admin/updateExecutiveAction">
  
  <fmt:bundle basename="org.ejc.resources.Messages">
	<table width="100%">
	<td align="left">
		<table class="inputStyle" cellspacing="5">
			<tr><td colspan="2" class="sectionTitle">Executive Details</td></tr>
			<tr><td></td></tr>
			<tr>
				<td><fmt:message key="page.registration.firstName" /></td>
				<td><html:text property="firstName" styleClass="inputValue" errorStyleClass="errorInput"/></td>
			</tr>
			<tr>
				<td><fmt:message key="page.registration.lastName" /></td>
				<td><html:text property="lastName" styleClass="inputValue" errorStyleClass="errorInput"/></td>
			</tr>
			<tr>
				<td>Username</td>
				<td><html:text property="userName" styleClass="inputValue" errorStyleClass="errorInput"/></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><html:password property="password1" styleClass="inputValue" errorStyleClass="errorInput"/></td>
			</tr>
			<tr>
				<td>Repeat Password</td>
				<td><html:password property="password2" styleClass="inputValue" errorStyleClass="errorInput"/></td>
			</tr>
			<tr>
				<td>Language</td>
				<td><html:select property="languageId" styleClass="inputValue" errorStyleClass="errorInput">
						<html:option value="0">Please Select</html:option>
						<html:option value="1">English</html:option>
						<html:option value="2">French</html:option>
						<html:option value="3">German</html:option>
					</html:select></td>
			</tr>
			<tr>
				<td>Administrator</td>
				<td align="left" cellpadding="0"><html:checkbox property="administrator"/> </td>
			</tr>
			
			<html:hidden property="executiveId"/>
			
		</table>
		</td>
		<td>
		</td>
	</table>
<html:submit property="" value="Update Exec Details" styleClass="button"/>
			  <input type="hidden" name="methodToCall" value="updateExec" />
		  </fmt:bundle>
        </html:form>
<jsp:include page="../common/bottom.jsp" />